From 5ee634296aa63b30a1cc016f53ce55df799332c9 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Mon, 9 Apr 2012 17:51:41 +0100 Subject: [PATCH] Icon to copy Navbar search text to Device Search Options field (closes #11) --- Changes | 1 + Netdisco/public/css/netdisco.css | 13 ++++---- Netdisco/public/images/vaga_copy.png | Bin 0 -> 416 bytes Netdisco/views/js/search.js | 28 +++++++++++++++++ Netdisco/views/sidebar/search/device.tt | 40 ++++++++++++++++++------ 5 files changed, 66 insertions(+), 16 deletions(-) create mode 100644 Netdisco/public/images/vaga_copy.png diff --git a/Changes b/Changes index 1ae02f83..042350df 100644 --- a/Changes +++ b/Changes @@ -4,6 +4,7 @@ * Native copy of the Netdisco sort_port routine (#17) * Refactor begin hooks (closes #16) + * Icon to copy Navbar search text to Device Search Options field (closes #11) [BUG FIXES] diff --git a/Netdisco/public/css/netdisco.css b/Netdisco/public/css/netdisco.css index 23b619a8..518a7ef9 100644 --- a/Netdisco/public/css/netdisco.css +++ b/Netdisco/public/css/netdisco.css @@ -229,17 +229,18 @@ td { width: 152px; } -/* little sweep brush inside of port filter input field */ -.field_clear_icon { +/* little icon inside of search input fields */ +.field_clear_icon, .field_copy_icon { position: absolute; margin-left: 132px; z-index: 1; + padding: 6px; } -/* make the sweep icon fill the height of the input field -so that its tooltip takes prescedence over the field tooltip */ -.field_clear_icon > img { - padding: 6px; +/* nudge when icon inside the search field is a bootstrap glyph */ +.field_clear_icon > i { + margin-top: 1px; + margin-left: 4px; } /* change highlighting for form fields which are being used in a search */ diff --git a/Netdisco/public/images/vaga_copy.png b/Netdisco/public/images/vaga_copy.png new file mode 100644 index 0000000000000000000000000000000000000000..9faae10101482beb363fc196b3fb75af54208b06 GIT binary patch literal 416 zcmV;R0bl-!P)&@9>7v8 zBp`^EqGvG&@D6%_74KjxXf5`3DNHOpLq7a=GmrRoC2Al855{@(e*c+qHnwe>9LN2@ zik;8rgJoIn?4|Gf!#jKCz})#>Qaznc)W2S@i`7v;k|Z?9vMi)&3VEK>nBzFZ%zJmS z0(|`Fdu=obHNW6P!~Q2ND2hTakH;hRqbQ=jVHosVRn^xSAhqi{U>IgmS=V*A-|uj{ z-KGFpmZ7d|sHzIGEL$u)2m&Iq-|znb7>MH-+O{SBZnvA1J=*1R0ZEdm5CxQF34$Py zAYK+l@iGI1H%&tX`o1Um1b}NAhT&wD|1XZFX|!jIqXDevice Search Options

- -
-
- -
-
+ + + + + +
+
+ + + + + +
+