From c54201b7afd8ccab9abc8b4892e98165b9d92f81 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 2 May 2019 10:17:32 -0600 Subject: [PATCH] Unify timestamper formatting --- api/js/etemplate/et2_widget_timestamper.js | 5 +++++ api/lang/egw_en.lang | 2 ++ api/templates/default/etemplate2.css | 15 +++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/api/js/etemplate/et2_widget_timestamper.js b/api/js/etemplate/et2_widget_timestamper.js index ad93180dc2..72740d1977 100644 --- a/api/js/etemplate/et2_widget_timestamper.js +++ b/api/js/etemplate/et2_widget_timestamper.js @@ -42,6 +42,9 @@ var et2_timestamper = (function(){ "use strict"; return et2_button.extend([], default: et2_no_init, description: "Timezone. Default is user time." }, + statustext: { + default: "Insert timestamp into description field" + }, image: { default: "timestamp" }, @@ -57,6 +60,8 @@ var et2_timestamper = (function(){ "use strict"; return et2_button.extend([], */ init: function() { this._super.apply(this, arguments); + + this.btn.addClass('et2_timestamper'); }, /** diff --git a/api/lang/egw_en.lang b/api/lang/egw_en.lang index cb13d977b8..cb608735c1 100644 --- a/api/lang/egw_en.lang +++ b/api/lang/egw_en.lang @@ -691,6 +691,8 @@ insert new row after this one common en Insert new row after insert new row in front of first line common en Insert new row before first line insert row after common en Insert row after insert row before common en Insert row before +insert timestamp into description field common en Insert timestamp into description field +install common en Install integer common en Integer international common en International introduction common en Introduction diff --git a/api/templates/default/etemplate2.css b/api/templates/default/etemplate2.css index 8a34f64aa8..ddac0ba00a 100644 --- a/api/templates/default/etemplate2.css +++ b/api/templates/default/etemplate2.css @@ -488,6 +488,21 @@ span.et2_date_duration input.et2_date_duration{ border: none; } +/** + * Timestamper widget + */ +button.et2_button_with_image.et2_timestamper { + background-position: center; + background-size: 16px; + padding: 0px; + width: 24px; + height: 24px; +} +button.et2_timestamper:hover { + background-size: 16px; +} + + /** * Dialog widget * It uses jQueryUI, so this is just our little bits - icon on left