diff --git a/addons/web/i18n/it.po b/addons/web/i18n/it.po index cd25e1fb9d6..7df8f4c27bb 100644 --- a/addons/web/i18n/it.po +++ b/addons/web/i18n/it.po @@ -8,14 +8,14 @@ msgstr "" "Project-Id-Version: openerp-web\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2012-07-02 09:06+0200\n" -"PO-Revision-Date: 2012-02-16 21:49+0000\n" -"Last-Translator: Davide Corio - agilebg.com \n" +"PO-Revision-Date: 2012-10-22 14:36+0000\n" +"Last-Translator: Marius Marolla \n" "Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-10-21 05:02+0000\n" -"X-Generator: Launchpad (build 16165)\n" +"X-Launchpad-Export-Date: 2012-10-23 05:05+0000\n" +"X-Generator: Launchpad (build 16179)\n" #. openerp-web #: addons/web/static/src/js/chrome.js:176 @@ -129,56 +129,56 @@ msgstr "OpenERP - Unsupported/Community Version" #. openerp-web #: addons/web/static/src/js/coresetup.js:619 msgid "less than a minute ago" -msgstr "" +msgstr "meno di un minuto fa" #. openerp-web #: addons/web/static/src/js/coresetup.js:620 msgid "about a minute ago" -msgstr "" +msgstr "circa un minuto fa" #. openerp-web #: addons/web/static/src/js/coresetup.js:621 #, python-format msgid "%d minutes ago" -msgstr "" +msgstr "%d minuti fa" #. openerp-web #: addons/web/static/src/js/coresetup.js:622 msgid "about an hour ago" -msgstr "" +msgstr "circa un'ora fa" #. openerp-web #: addons/web/static/src/js/coresetup.js:623 #, python-format msgid "%d hours ago" -msgstr "" +msgstr "%d ore fa" #. openerp-web #: addons/web/static/src/js/coresetup.js:624 msgid "a day ago" -msgstr "" +msgstr "un giorno fa" #. openerp-web #: addons/web/static/src/js/coresetup.js:625 #, python-format msgid "%d days ago" -msgstr "" +msgstr "%d giorni fa" #. openerp-web #: addons/web/static/src/js/coresetup.js:626 msgid "about a month ago" -msgstr "" +msgstr "circa un mese fa" #. openerp-web #: addons/web/static/src/js/coresetup.js:627 #, python-format msgid "%d months ago" -msgstr "" +msgstr "%d mesi fa" #. openerp-web #: addons/web/static/src/js/coresetup.js:628 msgid "about a year ago" -msgstr "" +msgstr "circa un anno fa" #. openerp-web #: addons/web/static/src/js/coresetup.js:629 diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 565bf9c12f5..eb70b150d76 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -394,6 +394,10 @@ .openerp .oe_image_medium > img { max-width: 180px; max-height: 180px; } + .openerp .oe_view_manager_current .accessactive:first-letter{ + text-decoration:underline; + text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); + font-weight:bold; } .openerp .oe_button.oe_link { border: none; padding: 0; @@ -2386,7 +2390,13 @@ div.ui-widget-overlay { .ui-menu .ui-menu-item a.ui-state-hover, .ui-menu .ui-menu-item a.ui-state-active { background: #7c7bad; } -.ui-corner-all { - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - border-radius: 3px; } + .ui-corner-all { + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; } + + .resolution table { + width: 100%; + line-height: 20px; } + .resolution table td { + valign: middle; } diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 568db634815..70a9898022c 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -434,6 +434,10 @@ $sheet-max-width: 860px .oe_image_medium > img max-width: 180px max-height: 180px + .oe_view_manager_current .accessactive:first-letter + text-decoration: underline + text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) + font-weight: bold .oe_button.oe_link @include reset() img @@ -2314,5 +2318,10 @@ div.ui-widget-overlay .ui-corner-all @include radius(3px) +.resolution table + width: 100% + line-height: 20px + td + valign: middle // au BufWritePost,FileWritePost *.sass :!sass --style expanded --line-numbers > "%:p:r.css" // vim:tabstop=4:shiftwidth=4:softtabstop=4:fdm=marker: diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 3cb4437d1c3..8cd02c46763 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -987,7 +987,21 @@ instance.web.WebClient = instance.web.Client.extend({ start: function() { var self = this; return $.when(this._super()).pipe(function() { - self.$el.on('click', '.oe_logo', function() { + self.$el.on('contextmenu','.oe_logo',function(e) { + instance.web.dialog($(QWeb.render('Resolution')),{ + title: "OpenERP Resolution" }); + + $(self.$el).click(function(){ + $('.resolution').dialog('close'); + }) + $('.resolution a').click(function() { + self.$el.find('.oe_logo').css('width', $(this).attr('awidth')+"px"); + self.$el.find('.oe_logo').css('height', $(this).attr('aheight')+"px"); + self.$el.find('.oe_logo img').css('width', $(this).attr('imgw')+"px"); + self.$el.find('.oe_logo img').css('height', $(this).attr('imgh')+"px"); + }) + }) + self.$el.on('click', '.oe_logo', function(e) { self.action_manager.do_action('home'); }); if (jQuery.param !== undefined && jQuery.deparam(jQuery.param.querystring()).kitten !== undefined) { diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 7bb25d8bc4d..c913e2e74bd 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -125,6 +125,7 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM self.check_actual_mode(); self.on("change:actual_mode", self, self.init_pager); self.init_pager(); + self.widgetAccesskey(); }); self.on("load_record", self, self.load_record); this.on('view_loaded', self, self.load_form); @@ -219,6 +220,16 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM return $.when(); }, + widgetAccesskey:function(){ + $(document).keydown(function(e){ + if(e.keyCode === $.ui.keyCode.ALT) { + $("[accesskey]").addClass('accessactive'); + } + e.stopPropagation(); + }).keyup(function(e){ + $("[accesskey]").removeClass('accessactive'); + }); + }, widgetFocused: function() { // Clear click flag if used to focus a widget this.__clicked_inside = false; diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 899bd614f76..caba50416ad 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -10,6 +10,27 @@ Loading... + +
+ + + + + + + + + + + + + + + + +
150 x 60250 x 90
290 x 90320 x 100
Original
+
+
@@ -404,7 +425,7 @@ - +